// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   UserForm.java

package org.fiel.admin.struts.forms;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public final class UserForm extends ActionForm
{

    public UserForm()
    {
        empresa = null;
        userid = null;
        userpass = null;
        nivel = null;
        contacto = null;
        fechaVen = null;
        id = null;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request)
    {
        empresa = null;
        userid = null;
        userpass = null;
        nivel = null;
        contacto = null;
        fechaVen = null;
        id = null;
    }

    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
    {
        ActionErrors errors = new ActionErrors();
        if(empresa == null || empresa.length() < 1)
            errors.add("empresa", new ActionError("error.empresa.requerido"));
        if(userid == null || userid.length() < 1)
            errors.add("userid", new ActionError("error.userid.requerido"));
        if(userpass == null || userpass.length() < 1)
            errors.add("userpass", new ActionError("error.userpass.requerido"));
        if(nivel == null || nivel.length() < 1)
            errors.add("nivel", new ActionError("error.nivel.requerido"));
        if(contacto == null || contacto.length() < 1)
            errors.add("contacto", new ActionError("error.contacto.requerido"));
        return errors;
    }

    public String getContacto()
    {
        return contacto;
    }

    public String getEmpresa()
    {
        return empresa;
    }

    public String getFechaVen()
    {
        return fechaVen;
    }

    public String getId()
    {
        return id;
    }

    public String getNivel()
    {
        return nivel;
    }

    public String getUserid()
    {
        return userid;
    }

    public String getUserpass()
    {
        return userpass;
    }

    public void setContacto(String string)
    {
        contacto = string;
    }

    public void setEmpresa(String string)
    {
        empresa = string;
    }

    public void setFechaVen(String string)
    {
        fechaVen = string;
    }

    public void setId(String string)
    {
        id = string;
    }

    public void setNivel(String string)
    {
        nivel = string;
    }

    public void setUserid(String string)
    {
        userid = string;
    }

    public void setUserpass(String string)
    {
        userpass = string;
    }

    private String empresa;
    private String userid;
    private String userpass;
    private String nivel;
    private String contacto;
    private String fechaVen;
    private String id;
}
